package com.zbf.stock.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/3/12  15:28
 * 描述:
 */

@Mapper
@Repository
public interface TestJIanHuoMapper {

    @Insert("insert into base_wuliu_order(id,orderId,goods_id,createTime)values(#{id},#{orderId},#{goodsId},NOW())")
    public int insertJianHUoOrder(Map<String,Object> map);


    @Select("select orderId from base_wuliu_order where orderId=#{orderId}")
    public List<Map<String,Object>> getOrder(Map<String,Object> map);
}
